﻿using System.Windows.Forms;
using BingoClientModel;
using BingoServerCommon.Common;

namespace _TestClient
{
	public partial class Client : Form
	{
		public void Login(string account, string password)
		{
			Package pack = new Package(EnumPackCommand.CS_Login);

			pack.Write(account);
			pack.Write(password);

			byte[] bytes = pack.GetBuffer();

			// 发送
			if (_client.Send(bytes, bytes.Length))
			{
				AddMsg($"发送登录请求，account = {account} \t password = {password}");
			}
		}

	}
}
